package entity;

/**
 * Created by Administrator on 2017/7/11.
 */

import android.graphics.Bitmap;

import java.io.Serializable;

public class Writing implements Serializable {

    private static final long serialVersionUID = 1L;

    private int id;

    private String text;

    private int ci_id;

    private long create_dt;

    private long update_dt;

    private String bgimg;

    private int layout;

    private Bitmap bitmap;

    private Cipai cipai;

    private String author;

    public static long getSerialversionuid() {
        return serialVersionUID;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public long getCreate_dt() {
        return create_dt;
    }

    public void setCreate_dt(long create_dt) {
        this.create_dt = create_dt;
    }

    public long getUpdate_dt() {
        return update_dt;
    }

    public void setUpdate_dt(long update_dt) {
        this.update_dt = update_dt;
    }

    public String getBgimg() {
        return bgimg;
    }

    public void setBgimg(String bgimg) {
        this.bgimg = bgimg;
    }

    public int getLayout() {
        return layout;
    }

    public void setLayout(int layout) {
        this.layout = layout;
    }

    public int getCi_id() {
        return ci_id;
    }

    public void setCi_id(int ci_id) {
        this.ci_id = ci_id;
    }

    public Bitmap getBitmap() {
        return bitmap;
    }

    public void setBitmap(Bitmap bitmap) {
        this.bitmap = bitmap;
    }

    public Cipai getCipai() {
        return cipai;
    }

    public void setCipai(Cipai cipai) {
        this.cipai = cipai;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String ToString() {
        //String allaboutwriting = this.getCipai().getName() + this.getText();
        String allaboutwriting = "《" + this.getCipai().getName() + "》" + this.getText();
        return allaboutwriting;
    }

}
